<template>
  <div id="myInfo">
    <div class="warp">
      <el-avatar :src="avatarUrl" :size="60" />
      <h3>Dong Jie</h3>
      <p class="motto">年少当怀鸿鹄志</p>
      <div class="tags">
        <span><i class="iconfont icon-weizhi"></i> 太原</span>
        <span><i class="iconfont icon-major"></i> 软件工程</span>
      </div>
      <div class="iconGroup">
        <img class="icon" src="../../assets/svg/icon-weixin.svg" alt="" />
        <img class="icon" src="../../assets/svg/icon-github.svg" alt="" />
        <img class="icon" src="../../assets/svg/icon-csdn.svg" alt="" />
        <img class="icon" src="../../assets/svg/icon-email.svg" alt="" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "MyInfo",
  data() {
    return {
      avatarUrl:
        "https://pic1.zhimg.com/80/v2-ceaf5dcc1debb0c79b210f9b804c7f91_720w.jpg?source=1940ef5c"
      // avatarUrl: 'https://pic3.zhimg.com/80/v2-ca6a5149abba2f88b03b2b8170c85845_720w.jpg?source=1940ef5c'
    };
  }
};
</script>

<style scoped lang="scss">
#myInfo {
  height: 300px;
  padding-top: 30px;
  background: white;
  border-radius: 10px;
  border: 1px solid $border-color;

  .warp {
    height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    justify-content: space-around;
  }

  .icon {
    width: 28px;
  }

  .tags {
    color: #888;
    width: 136px;
    display: flex;
    justify-content: space-between;
  }

  .motto {
    color: #888;
  }

  .iconGroup {
    display: flex;
    width: 200px;
    margin: 0 auto;
    justify-content: space-around;
  }

  .iconGroup .iconfont {
    font-size: 26px;
    cursor: pointer;
  }

  .icon-email {
    color: #1f99df;
  }

  .icon-weixin {
    color: #00bd0b;
  }

  .icon-QQ {
    color: #369bce;
  }
}
</style>
